package com.ss.android.f.b.a.a;

import android.accounts.Account;
import java.util.Iterator;
import java.util.Map;

public final class b implements Runnable {
    private final AccountCacheHelper b;
    private final Account a;

    public b(AccountCacheHelper arg1, Account arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void run() {
        try {
            if(this.b.c.size() > 0 && this.b.a != null) {
                Iterator v2 = this.b.c.entrySet().iterator();
                while(v2.hasNext()) {
                    Object v0_1 = v2.next();
                    if(v0_1 == null) {
                        continue;
                    }

                    this.b.a.setUserData(this.a, (String) ((Map.Entry)v0_1).getKey(), (String) ((Map.Entry)v0_1).getValue());
                }

                this.b.c.clear();
            }

            return;
        }
        catch(Exception v0) {
            v0.printStackTrace();
            return;
        }
    }
}

